package live.fanxs.controller;

import live.fanxs.dao.TestDao;
import org.apache.ibatis.io.ResolverUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fanxing
 * @date 2020/10/19 23:12
 */
@Controller
public class TestController {
    @Autowired
    TestDao td;
    @RequestMapping("/test")
    public String test(Model m){
        m.addAttribute("user",td.test());
        return "select";
    }
}
